/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"FEC6852C-4892-42F1-BCB5-55B3CFB1EE9C"}
 */
function ok(event) {
	application.closeFormDialog()
}

/**
 * Handle hide window.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @returns {Boolean}
 *
 * @properties={typeid:24,uuid:"1C219E54-FB5A-40D4-A03D-BAF87EF8D698"}
 */
function onHide(event) {
	if (globals.gGrupo != null)
	{
		databaseManager.addTableFilterParam('medicos',null,'grupo_id','=',globals.gGrupo,'GRUPOS')
		return true
	}
	return false
}
